package com.uinnova.product.eam.mvc;

import com.binary.framework.web.RemoteResult;
import com.binary.jdbc.Page;
import com.uinnova.product.eam.service.SystemService;
import com.uinnova.product.eam.vo.SystemQueryVo;
import com.uinnova.product.eam.dto.SimpSystemInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system")
public class SystemController {

    @Autowired
    private SystemService systemService;

    @PostMapping("/list")
    public RemoteResult list(@RequestBody SystemQueryVo queryVo) {
        Page<SimpSystemInfo> page = systemService.list(queryVo);
        return new RemoteResult(page);
    }
}
